<template>
    <div class="titlebox"></div>
    <div class="supresulttitle"></div>
    <div class="conbox">
        <img class="leftimg" src="../../../assets/mahjong/icon5.png" alt="">
        <div class="right">
            <div class="r-left" @click="store.changeshowmah">
                <div class="heng1">
                    <span class="span1 setColor">1327</span>
                    <span class="span2 setColor">个</span>
                </div>
                <div class="heng2">麻将馆总数</div>
            </div>
            <div class="r-right">
                <div class="item">
                    <img src="../../../assets/mahjong/icon8.png" alt="">
                    <div class="item-l">
                        <span class="span1">有营业执照麻将馆数量</span>
                        <span class="span2 setColor">543个</span>
                    </div>
                </div>
                <div class="item">
                    <img src="../../../assets/mahjong/icon8.png" alt="">
                    <div class="item-l">
                        <span class="span1">没有营业执照麻将馆数量</span>
                        <span class="span2 setColor">784个</span>
                    </div>
                </div>
            </div>
        </div>
    </div>
</template>
<script setup lang="ts">
import { useCounterStore } from '@/stores/mahjong'
const store = useCounterStore()
</script>

<style lang="less" scoped>
.titlebox {
    width: 100%;
    height: 44px;
    background-image: url("../../../assets/mahjong/icon2.png");
    background-size: 100% 100%;
}

.supresulttitle {
    width: 100%;
    height: 36px;
    margin-top: 9px;
    background-image: url("../../../assets/mahjong/icon3.png");
    background-size: 100% 100%;
}
.conbox{
    width: 100%;
    height: 106px;
    margin-top: 9px;
    background-image: url("../../../assets/mahjong/icon4.png");
    background-size: 100% 100%;
    box-sizing: border-box;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    .leftimg{
        width: 102px;
        height: 84px;
        margin-right: 18px
    }
    .right{
        flex: 1;
        display: flex;
        align-items: center;
        justify-content: space-between;
        .r-left{
            flex: 1;
            cursor: pointer;
            .heng1{
                width: 145px;
                height: 27px;
                background-image: url("../../../assets/mahjong/icon7.png");
                background-size: 100% 100%;
                display: flex;
                align-items: flex-end;
                margin-top: 15px;
                .span1{
                    font-size: 30px;
                    font-weight: bold;
                    font-family: DINAlternate-Bold;
                }
                .span2{
                    font-size: 17px;
                    font-family: PingFangSC-Semibold;
                    margin-left: 5px;
                }
            }
            .heng2{
                margin-top: 5px;
                font-size: 16px;
                color: #FFFFFF;
            }
        }
        .r-right{
            width: 250px;
            display: flex;
            align-items: center;
            flex-wrap: wrap;
            .item{
                width: 100%;
                height: 32px;
                background-image: url("../../../assets/mahjong/icon6.png");
                background-size: 100% 100%;
                margin: 4px 0;
                box-sizing: border-box;
                padding: 0 16px 0 8px;
                display: flex;
                align-items: center;
                justify-content: space-between;
                .img{
                    width: 12px;
                    height: 12px;
                }
                .item-l{
                    flex: 1;
                    display: flex;
                    align-items: center;
                    justify-content: space-between;
                    margin-left: 6px;
                    .span1{
                        font-weight: 400;
                        font-size: 12px;
                        color: #FFFFFF;
                    }
                    .span2{
                        font-size: 14px;
                        font-weight: bold;
                        font-family: PingFangSC-Semibold;
                    }
                }
            }
        }
    }
}
</style>
